package com.champ.mc.innerclass;

import com.champ.mc.innerclass.up.Contents;
import com.champ.mc.innerclass.up.Destination;

public class Parcel4 {
    private class PContents implements Contents {
        private int i =11;
        public int value() {
            return i;
        }
    }
    protected class PDestination implements Destination {
        private String label;
        private PDestination(String whereTo) {
            this.label  = whereTo;
        }

        public String readLabel() {
            return this.label;
        }
    }
    public Destination destination(String s) {
        return new PDestination(s);
    }
    public Contents contents() {
        return new PContents();
    }
}
